Ext.define('Usws.view.channel.ChannelVideoAddWindow', {
	extend: 'Ext.window.Window',
    xtype: 'ChannelVideoAdd-Window',
    title: '添加频道视频',
    width:800,
    height:400,
    layout:'fit',
    modal: true,
    autoShow:true,
    initComponent: function() {
    	this.items = [Ext.create('Usws.view.channel.ChannelVideoAdd')
    	              /*{
    	            	  xtyp:'gridpanel',
	                   	  store: 'ChannelVideoAdd',
		               	  width:600,
		               	  height:400,
		               	  border:false,
	                   	  tbar:[
	              	             {
	           	            	 xtype: 'panel',
	           	            	 border:false,
	           	            	 items:[
	           	            	        {
	           								  xtype: 'panel',
	           	    	       	              border:false,
	           	    	       	              items:[
	           	    	       	            	      {xtype: 'button', text: '添加视频',  action: 'add', margin: '0 10 0 0'}
	           	    	       	            	    ]
	           							}
	           	            	       ]
	           	             }
	           	            ],
	           	           columns:[
	           	       			 {
	           	    				 text : '名称', 
	           	    				 width : '40%', 
	           	    				 sortable : true, 
	           	    				 dataIndex: 'name', 
	           	    				 hidden: false
	           	    			}
	           	    			,{
	           	    				 text : '类型', 
	           	    				 width : '20%', 
	           	    				 sortable : true, 
	           	    				 dataIndex: 'videoTypeName', 
	           	    				 hidden: false
	           	    			}
	           	    			,{text : '标签', width : '20%', sortable : true, dataIndex: 'tags', hidden: false}
	           	    			,{text : '审核状态', width : '20%', sortable : true, dataIndex: 'authStatus', hidden: false}
	           	                ],
	           	             bbar:{
	           	                 xtype: 'pagingtoolbar',
	           	                 store: 'ChannelVideoAdd',
	           	                 pageSize: 16,
	           	                 displayInfo: true,
	           	                 firstText:'首页',
	           	                 prevText:'上一页',
	           	                 nextText:'下一页',
	           	                 beforePageText:'第',
	           	                 afterPageText:'共  {0} 页',
	           	                 displayMsg: '显示第 {0} 条到 {1} 条记录，一共 {2} 条', 
	           	                 emptyMsg: "没有记录",
	           	                 refreshText:'刷新',
	           	                 lastText:'未页'
	           	             }
	                      } */
	              ];
    	  this.callParent(arguments);
    }
});